FROM java:8-jre

RUN useradd -s /bin/bash -g root -u 1002 yarn
ADD ./target/config.jar /app/
CMD ["java","-jar", "/app/config.jar"]

HEALTHCHECK --interval=10s --timeout=3s CMD curl -f http://localhost:8888/health || exit 1

EXPOSE 8888